(window.webpackJsonp = window.webpackJsonp || []).push([
  [20],
  {
    PeeD: function (T, m, o) {
      "use strict";
      o.r(m);
      var c = o("k1fw"),
        R = o("tJVT"),
        x = o("q1tI"),
        I = o.n(x),
        i = o("9kvl"),
        N = o("LtsZ"),
        W = o("PpiC"),
        F = o("55Ip"),
        H = o("Hx5s"),
        te = o("rZaO"),
        ne = o("qVdP"),
        L = o("jsC+"),
        oe = o("T2oS"),
        z = o("W9HT"),
        ie = o("Telt"),
        $ = o("Tckk"),
        le = o("lUTK"),
        E = o("BvKs"),
        J = o("aIfO"),
        e = o("nKUr");
      function y(r, n, l, s) {
        if (r.rightRender) return r.rightRender(l, s, r);
        var d = Object(e.jsx)(E.a, {
            className: "umi-plugin-layout-menu",
            children: Object(e.jsxs)(
              E.a.Item,
              {
                onClick: function () {
                  return r.logout && (r == null ? void 0 : r.logout(l));
                },
                children: [Object(e.jsx)(J.a, {}), "\u9000\u51FA\u767B\u5F55"],
              },
              "logout"
            ),
          }),
          t = Object(e.jsxs)("span", {
            className: "umi-plugin-layout-action",
            children: [
              Object(e.jsx)($.a, {
                size: "small",
                className: "umi-plugin-layout-avatar",
                src:
                  (l == null ? void 0 : l.avatar) ||
                  "https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png",
                alt: "avatar",
              }),
              Object(e.jsx)("span", {
                className: "umi-plugin-layout-name",
                children: l == null ? void 0 : l.name,
              }),
            ],
          });
        return n
          ? Object(e.jsx)("div", {
              className: "umi-plugin-layout-right",
              children: Object(e.jsx)(z.a, {
                size: "small",
                style: { marginLeft: 8, marginRight: 8 },
              }),
            })
          : Object(e.jsxs)("div", {
              className: "umi-plugin-layout-right anticon",
              children: [
                r.logout
                  ? Object(e.jsx)(L.a, {
                      overlay: d,
                      overlayClassName: "umi-plugin-layout-container",
                      children: t,
                    })
                  : t,
                i.b && Object(e.jsx)(i.b, {}),
              ],
            });
      }
      var ae = o("J+/v"),
        B = o("MoRW"),
        re = o("+L6B"),
        M = o("2/Rp");
      function S() {
        i.e.push("/");
      }
      var U = function () {
          return Object(e.jsx)(B.a, {
            status: "404",
            title: "404",
            subTitle:
              "\u62B1\u6B49\uFF0C\u4F60\u8BBF\u95EE\u7684\u9875\u9762\u4E0D\u5B58\u5728",
            extra: Object(e.jsx)(M.a, {
              type: "primary",
              onClick: S,
              children: "\u8FD4\u56DE\u9996\u9875",
            }),
          });
        },
        V = function () {
          return Object(e.jsx)(B.a, {
            status: "403",
            title: "403",
            subTitle:
              "\u62B1\u6B49\uFF0C\u4F60\u65E0\u6743\u8BBF\u95EE\u8BE5\u9875\u9762",
            extra: Object(e.jsx)(M.a, {
              type: "primary",
              onClick: S,
              children: "\u8FD4\u56DE\u9996\u9875",
            }),
          });
        },
        Z = function (n) {
          var l = n.children,
            s = n.currentPathConfig;
          return s
            ? s.unAccessible || s.unaccessible
              ? n.unAccessible || Object(e.jsx)(V, {})
              : l
            : n.noFound || Object(e.jsx)(U, {});
        },
        A = o("GOef"),
        K = function () {
          return Object(e.jsxs)("svg", {
            xmlns: "http://www.w3.org/2000/svg",
            width: "32",
            height: "32",
            viewBox: "0 0 200 200",
            children: [
              Object(e.jsxs)("defs", {
                children: [
                  Object(e.jsxs)("linearGradient", {
                    id: "linearGradient-1",
                    x1: "62.102%",
                    x2: "108.197%",
                    y1: "0%",
                    y2: "37.864%",
                    children: [
                      Object(e.jsx)("stop", {
                        offset: "0%",
                        stopColor: "#4285EB",
                      }),
                      Object(e.jsx)("stop", {
                        offset: "100%",
                        stopColor: "#2EC7FF",
                      }),
                    ],
                  }),
                  Object(e.jsxs)("linearGradient", {
                    id: "linearGradient-2",
                    x1: "69.644%",
                    x2: "54.043%",
                    y1: "0%",
                    y2: "108.457%",
                    children: [
                      Object(e.jsx)("stop", {
                        offset: "0%",
                        stopColor: "#29CDFF",
                      }),
                      Object(e.jsx)("stop", {
                        offset: "37.86%",
                        stopColor: "#148EFF",
                      }),
                      Object(e.jsx)("stop", {
                        offset: "100%",
                        stopColor: "#0A60FF",
                      }),
                    ],
                  }),
                  Object(e.jsxs)("linearGradient", {
                    id: "linearGradient-3",
                    x1: "69.691%",
                    x2: "16.723%",
                    y1: "-12.974%",
                    y2: "117.391%",
                    children: [
                      Object(e.jsx)("stop", {
                        offset: "0%",
                        stopColor: "#FA816E",
                      }),
                      Object(e.jsx)("stop", {
                        offset: "41.473%",
                        stopColor: "#F74A5C",
                      }),
                      Object(e.jsx)("stop", {
                        offset: "100%",
                        stopColor: "#F51D2C",
                      }),
                    ],
                  }),
                  Object(e.jsxs)("linearGradient", {
                    id: "linearGradient-4",
                    x1: "68.128%",
                    x2: "30.44%",
                    y1: "-35.691%",
                    y2: "114.943%",
                    children: [
                      Object(e.jsx)("stop", {
                        offset: "0%",
                        stopColor: "#FA8E7D",
                      }),
                      Object(e.jsx)("stop", {
                        offset: "51.264%",
                        stopColor: "#F74A5C",
                      }),
                      Object(e.jsx)("stop", {
                        offset: "100%",
                        stopColor: "#F51D2C",
                      }),
                    ],
                  }),
                ],
              }),
              Object(e.jsx)("g", {
                fill: "none",
                fillRule: "evenodd",
                stroke: "none",
                strokeWidth: "1",
                children: Object(e.jsx)("g", {
                  transform: "translate(-20 -20)",
                  children: Object(e.jsx)("g", {
                    transform: "translate(20 20)",
                    children: Object(e.jsxs)("g", {
                      children: [
                        Object(e.jsxs)("g", {
                          fillRule: "nonzero",
                          children: [
                            Object(e.jsxs)("g", {
                              children: [
                                Object(e.jsx)("path", {
                                  fill: "url(#linearGradient-1)",
                                  d: "M91.588 4.177L4.18 91.513a11.981 11.981 0 000 16.974l87.408 87.336a12.005 12.005 0 0016.989 0l36.648-36.618c4.209-4.205 4.209-11.023 0-15.228-4.208-4.205-11.031-4.205-15.24 0l-27.783 27.76c-1.17 1.169-2.945 1.169-4.114 0l-69.802-69.744c-1.17-1.169-1.17-2.942 0-4.11l69.802-69.745c1.17-1.169 2.944-1.169 4.114 0l27.783 27.76c4.209 4.205 11.032 4.205 15.24 0 4.209-4.205 4.209-11.022 0-15.227L108.581 4.056c-4.719-4.594-12.312-4.557-16.993.12z",
                                }),
                                Object(e.jsx)("path", {
                                  fill: "url(#linearGradient-2)",
                                  d: "M91.588 4.177L4.18 91.513a11.981 11.981 0 000 16.974l87.408 87.336a12.005 12.005 0 0016.989 0l36.648-36.618c4.209-4.205 4.209-11.023 0-15.228-4.208-4.205-11.031-4.205-15.24 0l-27.783 27.76c-1.17 1.169-2.945 1.169-4.114 0l-69.802-69.744c-1.17-1.169-1.17-2.942 0-4.11l69.802-69.745c2.912-2.51 7.664-7.596 14.642-8.786 5.186-.883 10.855 1.062 17.009 5.837L108.58 4.056c-4.719-4.594-12.312-4.557-16.993.12z",
                                }),
                              ],
                            }),
                            Object(e.jsx)("path", {
                              fill: "url(#linearGradient-3)",
                              d: "M153.686 135.855c4.208 4.205 11.031 4.205 15.24 0l27.034-27.012c4.7-4.696 4.7-12.28 0-16.974l-27.27-27.15c-4.218-4.2-11.043-4.195-15.254.013-4.209 4.205-4.209 11.022 0 15.227l18.418 18.403c1.17 1.169 1.17 2.943 0 4.111l-18.168 18.154c-4.209 4.205-4.209 11.023 0 15.228z",
                            }),
                          ],
                        }),
                        Object(e.jsx)("ellipse", {
                          cx: "100.519",
                          cy: "100.437",
                          fill: "url(#linearGradient-4)",
                          rx: "23.6",
                          ry: "23.581",
                        }),
                      ],
                    }),
                  }),
                }),
              }),
            ],
          });
        },
        P = K,
        X = function (n) {
          var l,
            s,
            d,
            t = {};
          return (
            n != null && n.hideFooter && (t.footerRender = !1),
            (n == null ? void 0 : n.layout) == !1
              ? ((t.pure = !0), t)
              : (n != null &&
                  (l = n.layout) !== null &&
                  l !== void 0 &&
                  l.hideMenu &&
                  (t.menuRender = !1),
                n != null &&
                  (s = n.layout) !== null &&
                  s !== void 0 &&
                  s.hideFooter &&
                  (t.footerRender = !1),
                n != null &&
                  (d = n.layout) !== null &&
                  d !== void 0 &&
                  d.hideNav &&
                  (t.headerRender = !1),
                t)
          );
        },
        Q = X,
        Y = function (n) {
          var l,
            s = n.children,
            d = n.userConfig,
            t = d === void 0 ? {} : d,
            v = n.location,
            p = n.route,
            C = Object(W.a)(n, ["children", "userConfig", "location", "route"]),
            j = (i.k && Object(i.k)("@@initialState")) || {
              initialState: void 0,
              loading: !1,
              setInitialState: null,
            },
            f = j.initialState,
            O = j.loading,
            g = j.setInitialState,
            w = Object(x.useState)({}),
            D = Object(R.a)(w, 2),
            G = D[0],
            q = D[1];
          Object(x.useEffect)(
            function () {
              var u,
                a = Object(A.c)(
                  (n == null || (u = n.route) === null || u === void 0
                    ? void 0
                    : u.routes) || [],
                  void 0,
                  void 0,
                  !0
                ),
                b = a.menuData,
                ee = Object(A.b)(v.pathname, b).pop();
              q(ee || {});
            },
            [
              v == null ? void 0 : v.pathname,
              n == null || (l = n.route) === null || l === void 0
                ? void 0
                : l.routes,
            ]
          );
          var h = Object(c.a)(
              Object(c.a)(
                Object(c.a)(
                  {
                    itemRender: function (a) {
                      return Object(e.jsx)(F.a, {
                        to: a.path,
                        children: a.breadcrumbName,
                      });
                    },
                  },
                  t
                ),
                C
              ),
              Q(G)
            ),
            _ = i.i === null || i.i === void 0 ? void 0 : Object(i.i)();
          return Object(e.jsx)(
            H.b,
            Object(c.a)(
              Object(c.a)(
                {
                  route: p,
                  location: v,
                  title:
                    (t == null ? void 0 : t.name) ||
                    (t == null ? void 0 : t.title),
                  navTheme: "dark",
                  siderWidth: 256,
                  onMenuHeaderClick: function (a) {
                    a.stopPropagation(), a.preventDefault(), i.e.push("/");
                  },
                  menu: { locale: t.locale },
                  menuDataRender: t.patchMenus
                    ? function (u) {
                        return t == null ? void 0 : t.patchMenus(u, j);
                      }
                    : void 0,
                  formatMessage: t == null ? void 0 : t.formatMessage,
                  logo: P,
                  menuItemRender: function (a, b) {
                    return a.isUrl || a.children
                      ? b
                      : a.path && v.pathname !== a.path
                      ? Object(e.jsx)(F.a, {
                          to: a.path,
                          target: a.target,
                          children: b,
                        })
                      : b;
                  },
                  disableContentMargin: !0,
                  fixSiderbar: !0,
                  fixedHeader: !0,
                  postMenuData: i.h
                    ? function (u) {
                        return i.h === null || i.h === void 0
                          ? void 0
                          : Object(i.h)(u, _);
                      }
                    : void 0,
                },
                h
              ),
              {},
              {
                rightContentRender:
                  (h == null ? void 0 : h.rightContentRender) !== !1 &&
                  function (u) {
                    var a = y == null ? void 0 : y(t, O, f, g);
                    return h.rightContentRender
                      ? h.rightContentRender(u, a, {
                          userConfig: t,
                          loading: O,
                          initialState: f,
                          setInitialState: g,
                        })
                      : a;
                  },
                children: Object(e.jsx)(Z, {
                  noFound: t == null ? void 0 : t.noFound,
                  unAccessible: t == null ? void 0 : t.unAccessible,
                  currentPathConfig: G,
                  children: t.childrenRender ? t.childrenRender(s) : s,
                }),
              }
            )
          );
        },
        k = Y,
        se = (m.default = function (r) {
          var n = Object(x.useState)(null),
            l = Object(R.a)(n, 2),
            s = l[0],
            d = l[1],
            t = (i.k && Object(i.k)("@@initialState")) || {
              initialState: void 0,
              loading: !1,
              setInitialState: null,
            },
            v = i.i === null || i.i === void 0 ? void 0 : Object(i.i)();
          Object(x.useEffect)(
            function () {
              var f =
                i.f.applyPlugins({
                  key: "layout",
                  type: N.ApplyPluginsType.modify,
                  initialValue: Object(c.a)(
                    Object(c.a)({}, t),
                    {},
                    {
                      traverseModifyRoutes: function (g) {
                        return i.h === null || i.h === void 0
                          ? void 0
                          : Object(i.h)(g, v);
                      },
                    }
                  ),
                }) || {};
              if (f instanceof Promise) {
                f.then(function (O) {
                  d(O);
                });
                return;
              }
              d(f);
            },
            [t == null ? void 0 : t.initialState, v]
          );
          var p = Object(c.a)(
              Object(c.a)(
                {},
                {
                  name: "home-honey-admin",
                  theme: "PRO",
                  locale: !0,
                  showBreadcrumb: !0,
                  siderWidth: 208,
                  navTheme: "light",
                  primaryColor: "#1890ff",
                  layout: "mix",
                  contentWidth: "Fluid",
                  fixedHeader: !1,
                  fixSiderbar: !0,
                  colorWeak: !1,
                  title: "HomeHoney",
                  pwa: !1,
                  logo: "",
                  iconfontUrl: "",
                }
              ),
              s || {}
            ),
            C = Object(i.j)(),
            j = C.formatMessage;
          return s
            ? I.a.createElement(
                k,
                Object(c.a)({ userConfig: p, formatMessage: j }, r)
              )
            : null;
        });
    },
    rZaO: function (T, m, o) {},
  },
]);
